﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanmia.Warehouse.Core;
using FluentNHibernate.Mapping;

namespace Tanmia.Warehouse.NHibernateRepository.Mapping
{
    public class StockMovementDetailMap : ClassMap<StockMovementDetail>
    {
        public StockMovementDetailMap()
        {
            Table("StockMovementDetail");

            Id(x => x.StockMovementDetailID).Not.Nullable().GeneratedBy.Identity().Unique();
            Map(x => x.Quantity).Not.Nullable();

            References(x => x.Location, "LocationID").Nullable();
        }
    }
}
